#ifndef __LED_H__
#define __LED_H__

typedef struct{
unsigned int MODER;
unsigned int OTYPER;
unsigned int OSPEEDR;
unsigned int PUPDR;
unsigned int IDR;
unsigned int ODR;
unsigned int BSRR;
}gpio_t;

#define GPIOE (*(gpio_t *)0x50006000)
#define GPIOF (*(gpio_t *)0x50007000)
#define RCC (*(unsigned int *)0x50000a28)

void led_init();
void led_ctl(int which,int cmd);

#endif